home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / emacs-18.59src.lha / emacs-18.59 / src / ymakefile < prev   
Encoding:
Makefile  |  1993-08-31  |  17.3 KB  |  618 lines

  1. /* Makefile for GNU Emacs.
  2.    Copyright (C) 1985, 1987, 1988, 1990 Free Software Foundation, Inc.
  3.  
  4. This file is part of GNU Emacs.
  5.  
  6. GNU Emacs is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 1, or (at your option)
  9. any later version.
  10.  
  11. GNU Emacs is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GNU Emacs; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20.  
  21. #ifdef amiga
  22. #undef amiga
  23. #endif
  24.  
  25. #ifdef AMIGA
  26. dot =
  27. #else
  28. dot = .
  29. #endif
  30. /* on Xenix, replace double-dot below with $(dot)$(dot) */
  31. lispdir = $(dot)$(dot)/lisp/
  32. etcdir = $(dot)$(dot)/etc/
  33. shortnamesdir = $(dot)$(dot)/shortnames/
  34. cppdir = $(dot)$(dot)/cpp/
  35. oldXMenudir = $(dot)$(dot)/oldXMenu/
  36.  
  37. /* Just to avoid uncertainty.  */
  38. SHELL = /bin/sh
  39.  
  40. #define NO_SHORTNAMES
  41. #include "config.h"
  42.  
  43. /* Use HAVE_X11 as an alias for X11 in this file
  44.    to avoid problems with X11 as a subdirectory name
  45.    in -I and other such options which pass through this file. */
  46.  
  47. #ifdef X11
  48. #define HAVE_X11
  49. #undef X11
  50. #endif
  51.  
  52. /* On some machines #define register is done in config;
  53.    don't let it interfere with this file.  */
  54. #undef register
  55.  
  56. /* On some systems we may not to use the system make command. */
  57. #ifdef MAKE_COMMAND
  58. MAKE = MAKE_COMMAND
  59. #else
  60. MAKE=make
  61. #endif
  62.  
  63. #ifdef C_COMPILER
  64. CC = C_COMPILER
  65. #endif
  66.  
  67. /* Some machines don't find the standard C libraries in the usual place.  */
  68. #ifndef ORDINARY_LINK
  69. #ifndef LIB_STANDARD
  70. #define LIB_STANDARD -lc
  71. #endif
  72. #else
  73. #ifndef LIB_STANDARD
  74. #define LIB_STANDARD
  75. #endif
  76. #endif
  77.  
  78. /* Unless inhibited or changed, use -lg to link for debugging.  */
  79. #ifndef LIBS_DEBUG
  80. #define LIBS_DEBUG -lg
  81. #endif
  82.  
  83. /* Some s- files define this to request special libraries.  */
  84. #ifndef LIBS_SYSTEM
  85. #define LIBS_SYSTEM
  86. #endif
  87.  
  88. /* Some m- files define this to request special libraries.  */
  89. #ifndef LIBS_MACHINE
  90. #define LIBS_MACHINE
  91. #endif
  92.  
  93. /* Some s- files define this to request special switches in ld.  */
  94. #ifndef LD_SWITCH_SYSTEM
  95. #if defined (BSD) && !defined (COFF) && !defined (__GNUC__)
  96. #define LD_SWITCH_SYSTEM -X
  97. #else
  98. #define LD_SWITCH_SYSTEM
  99. #endif /* COFF, or not BSD */
  100. #endif
  101.  
  102. /* Some m- files define this to request special switches in ld.  */
  103. #ifndef LD_SWITCH_MACHINE
  104. #define LD_SWITCH_MACHINE
  105. #endif
  106.  
  107. /* Some m- files define this to request special switches in cc.  */
  108. #ifndef C_SWITCH_MACHINE
  109. #define C_SWITCH_MACHINE
  110. #endif
  111.  
  112. #ifndef C_SWITCH_SYSTEM
  113. #define C_SWITCH_SYSTEM
  114. #endif
  115.  
  116. #ifndef C_SWITCH_X_MACHINE
  117. #define C_SWITCH_X_MACHINE
  118. #endif
  119.  
  120. #ifndef C_SWITCH_X_SYSTEM
  121. #define C_SWITCH_X_SYSTEM
  122. #endif
  123.  
  124. #ifndef ORDINARY_LINK
  125. #ifndef START_FILES
  126. #ifdef NO_REMAP
  127. #define START_FILES pre-crt0.o /lib/crt0.o
  128. #else
  129. #define START_FILES crt0.o
  130. #endif
  131. #endif /* have START_FILES */
  132. STARTFILES = START_FILES
  133. #else  /* ORDINARY_LINK */
  134. STARTFILES = pre-crt0.o
  135. #endif /* ORDINARY_LINK */
  136.  
  137. /* This macro says how to compile for debugging.
  138.    If you want to optimize, DON'T change this macro.
  139.    Instead, replace C_DEBUG_SWITCH with C_OPTIMIZE_SWITCH
  140.    where CFLAGS is set.  */
  141. #ifndef C_DEBUG_SWITCH
  142. #define C_DEBUG_SWITCH -g
  143. #endif
  144.  
  145. /* If user wants to optimize, this is how.  */
  146. #ifndef C_OPTIMIZE_SWITCH
  147. #define C_OPTIMIZE_SWITCH -O
  148. #endif
  149.  
  150. /* cc switches needed to make `asm' keyword work.
  151.    Nothing special needed on most machines.  */
  152. #ifndef C_SWITCH_ASM
  153. #define C_SWITCH_ASM
  154. #endif
  155.  
  156. /* Specify address for ld to start loading at,
  157.    if requested by configuration.  */
  158.  
  159. #ifdef LD_TEXT_START_ADDR
  160. STARTFLAGS = -T LD_TEXT_START_ADDR -e __start
  161. #endif
  162.  
  163. #ifndef LINKER
  164. #ifdef ORDINARY_LINK
  165. LD = $(CC)
  166. #else /* not ORDINARY_LINK */
  167. #if __GNUC__ > 1
  168. /* Search the proper places so that we can find -lgcc.  */
  169. #define LINKER gcc -nostdlib
  170. #else
  171. #define LINKER ld
  172. #endif
  173. #endif /* not ORDINARY_LINK */
  174. #endif /* no LINKER */
  175.  
  176. #ifdef LINKER
  177. LD = LINKER
  178. #endif
  179. LDFLAGS = LD_SWITCH_SYSTEM LD_SWITCH_MACHINE
  180.  
  181. /* Figure out whether the system cpp can handle long names.
  182.    Do it by testing it right now.
  183.    If it loses, arrange to use the GNU cpp.  */
  184.  
  185. #define LONGNAMEBBBFOOX
  186. #ifdef LONGNAMEBBBARFOOX
  187. /* Installed cpp fails to distinguish those names!  */
  188. /* Arrange to compile the GNU cpp later on */
  189. #define NEED_CPP
  190. /* Cause cc to invoke the cpp that comes with Emacs,
  191.    which will be in a file named localcpp.  */
  192. MYCPPFLAG= -Blocal
  193. /* LOCALCPP is the local one or nothing.
  194.    CPP is the local one or the standardone.  */
  195. LOCALCPP= localcpp
  196. #endif /* NEED_CPP */
  197.  
  198. #ifdef SHORTNAMES
  199. SHORT= shortnames
  200. #endif /* SHORTNAMES */
  201.  
  202. #ifdef AMIGA
  203. CFLAGS= C_DEBUG_SWITCH def emacs $(MYCPPFLAG) C_SWITCH_MACHINE C_SWITCH_SYSTEM C_SWITCH_X_MACHINE C_SWITCH_X_SYSTEM
  204. #else
  205. CFLAGS= C_DEBUG_SWITCH -Demacs $(MYCPPFLAG) C_SWITCH_MACHINE C_SWITCH_SYSTEM C_SWITCH_X_MACHINE C_SWITCH_X_SYSTEM
  206. #endif
  207. /* DO NOT use -R.  There is a special hack described in lastfile.c
  208.    which is used instead.  Some initialized data areas are modified
  209.    at initial startup, then labeled as part of the text area when
  210.    Emacs is dumped for the first time, and never changed again. */
  211.  
  212. /* You may replace C_DEBUG_SWITCH with C_OPTIMIZE_SWITCH
  213.    if you don't believe in debugging. */
  214.  
  215. /* -Demacs is needed to make some files produce the
  216.    correct version for use in Emacs.  */
  217.  
  218. #ifndef LIBX10_MACHINE
  219. #define LIBX10_MACHINE
  220. #endif
  221.  
  222. #ifndef LIBX11_MACHINE
  223. #define LIBX11_MACHINE
  224. #endif
  225.  
  226. #ifndef LIBX10_SYSTEM
  227. #define LIBX10_SYSTEM
  228. #endif
  229.  
  230. #ifndef LIBX11_SYSTEM
  231. #define LIBX11_SYSTEM
  232. #endif
  233.  
  234. #ifndef LIB_X11_LIB
  235. #define LIB_X11_LIB -lX11
  236. #endif
  237.  
  238. #ifdef HAVE_X_WINDOWS
  239. #ifdef HAVE_X11
  240. #ifdef HAVE_X_MENU
  241. OLDXMENU = libXMenu11.a
  242. XOBJ = x11term.o x11fns.o xmenu.o
  243. LIBX = $(OLDXMENU) LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
  244. #else
  245. XOBJ = x11term.o x11fns.o
  246. LIBX = LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
  247. #endif
  248. #else /* not HAVE_X11 */
  249. #ifdef HAVE_X_MENU
  250. XOBJ= xterm.o xfns.o xmenu.o
  251. LIBX= -lXMenu -lX LIBX10_MACHINE LIBX10_SYSTEM
  252. #else
  253. XOBJ= xterm.o xfns.o
  254. LIBX= -lX LIBX10_MACHINE LIBX10_SYSTEM
  255. #endif /* not HAVE_X_MENU */
  256. #endif /* not HAVE_X11 */
  257. #endif /* HAVE_X_WINDOWS */
  258.  
  259. /* Fix linking if compiled with GCC.  */
  260. #ifdef __GNUC__
  261. #if __GNUC__ > 1
  262. #ifndef LIB_GCC
  263. #define LIB_GCC -lgcc
  264. #endif
  265. GNULIB_VAR = LIB_GCC
  266. #else /* __GNUC__ <= 1 */
  267. #ifndef LIB_GCC
  268. #define LIB_GCC /usr/local/lib/gcc-gnulib
  269. #endif
  270. GNULIB_VAR = `if [ -f LIB_GCC ] ; then echo LIB_GCC; else echo; fi`
  271. #endif /* __GNUC__ <= 1 */
  272. #else
  273. GNULIB_VAR =
  274. #endif
  275.  
  276. #ifdef MAINTAIN_ENVIRONMENT
  277. environobj = environ.o
  278. #endif /* MAINTAIN_ENVIRONMENT */
  279.  
  280. /* Allow config.h to specify a replacement file for unexec.c.  */
  281. #ifndef UNEXEC
  282. #define UNEXEC unexec.o
  283. #endif
  284.  
  285. termobjs= term.o cm.o
  286.  
  287. #ifdef AMIGA
  288. SYSDEP= amiga_sysdep.o
  289. #else
  290. SYSDEP= sysdep.o
  291. #endif
  292.  
  293. /* lastfile must follow all files
  294.    whose initialized data areas should be dumped as pure by dump-emacs. */
  295. obj=    dispnew.o scroll.o xdisp.o window.o \
  296.     $(termobjs) $(XOBJ) \
  297.     emacs.o keyboard.o macros.o keymap.o $(SYSDEP) \
  298.     buffer.o filelock.o insdel.o marker.o \
  299.     minibuf.o fileio.o dired.o filemode.o \
  300.     cmds.o casefiddle.o indent.o search.o regex.o undo.o \
  301.     alloc.o data.o doc.o editfns.o callint.o \
  302.     eval.o fns.o print.o lread.o \
  303.     abbrev.o syntax.o UNEXEC mocklisp.o bytecode.o \
  304.     process.o callproc.o $(environobj) \
  305.     doprnt.o
  306.  
  307. #ifdef TERMINFO
  308. /* Used to be -ltermcap here.  If your machine needs that,
  309.    define LIBS_TERMCAP in the m- file.  */
  310. #ifndef LIBS_TERMCAP
  311. #define LIBS_TERMCAP -lcurses
  312. #endif
  313. termcapobj = terminfo.o
  314. #else
  315. #ifndef LIBS_TERMCAP
  316. #define LIBS_TERMCAP
  317. termcapobj = termcap.o tparam.o
  318. #else
  319. termcapobj = tparam.o
  320. #endif
  321. #endif
  322.  
  323. #ifndef SYSTEM_MALLOC
  324. #ifdef HAVE_ALLOCA
  325. mallocobj = malloc.o
  326. #else
  327. mallocobj = alloca.o malloc.o
  328. #endif
  329. #else /* SYSTEM_MALLOC */
  330. #ifndef HAVE_ALLOCA
  331. mallocobj = alloca.o
  332. #endif
  333. #endif
  334.  
  335. /* define otherobj as list of object files that make-docfile
  336.    should not be told about.  */
  337. otherobj= $(termcapobj) lastfile.o $(mallocobj)
  338.  
  339. /* List of Lisp files loaded into the dumped Emacs. */
  340. lisp=    ${lispdir}simple.elc ${lispdir}help.elc \
  341.     ${lispdir}files.elc ${lispdir}window.elc \
  342.     ${lispdir}indent.elc ${lispdir}loaddefs.el ${lispdir}paths.el \
  343.     ${lispdir}startup.elc ${lispdir}lisp.elc \
  344.     ${lispdir}page.elc ${lispdir}register.elc \
  345.     ${lispdir}paragraphs.elc ${lispdir}lisp-mode.elc \
  346.     ${lispdir}text-mode.elc ${lispdir}fill.elc \
  347.     ${lispdir}c-mode.elc ${lispdir}isearch.elc \
  348.     ${lispdir}replace.elc ${lispdir}abbrev.elc \
  349.     ${lispdir}buff-menu.elc ${lispdir}subr.elc
  350.  
  351. /* just to be sure the sh is used */
  352. SHELL=/bin/sh
  353.  
  354. /* Construct full set of libraries to be linked.  */
  355. LIBES = LIBS_TERMCAP $(LIBX) LIBS_SYSTEM LIBS_MACHINE LIBS_DEBUG $(GNULIB_VAR) LIB_STANDARD
  356.  
  357. /* Enable recompilation of certain other files depending on system type.  */
  358.  
  359. #ifndef OTHER_FILES
  360. #define OTHER_FILES
  361. #endif
  362.  
  363. /* Enable inclusion of object files in temacs depending on system type.  */
  364. #ifndef OBJECTS_SYSTEM
  365. #define OBJECTS_SYSTEM
  366. #endif
  367.  
  368. #ifndef OBJECTS_MACHINE
  369. #define OBJECTS_MACHINE
  370. #endif
  371.  
  372. all: xemacs OTHER_FILES
  373.  
  374. xemacs: temacs # ${etcdir}DOC ${lisp}
  375. #ifdef HAVE_SHM
  376.     ./temacs -nl -batch -l inc-vers
  377.     ./temacs -nl -batch -l loadup dump
  378.     ln temacs xemacs
  379. #else
  380. #ifdef CANNOT_DUMP
  381.     mv temacs xemacs
  382. #else
  383. #ifdef AMIGA
  384.     -delete ${etcdir}EMACS-DATA xemacs force
  385.     temacs -nl -batch -l inc-vers
  386.     temacs -nl -batch -l loadup.el dump
  387.     -touch xemacs
  388. #else
  389.     ./temacs -batch -l inc-vers
  390.     ./temacs -batch -l loadup.el dump
  391. #endif /* not AMIGA */
  392. #endif /* not CANNOT_DUMP */
  393. #endif /* not HAVE_SHM */
  394.  
  395. ${etcdir}DOC: ${etcdir}make-docfile ${obj} ${lisp}
  396. #ifdef AMIGA
  397. REDIRECT_IN= <
  398.     -delete force ${etcdir}DOC
  399.     ${etcdir}make-docfile >${etcdir}DOC $(REDIRECT_IN) < <
  400. ${obj}
  401. ${lisp}
  402. ${lispdir}version.el
  403. ${lispdir}amiga-menu.elc ${lispdir}amiga-init.elc ${lispdir}amiga-mouse.elc
  404. OBJECTS_SYSTEM
  405. <
  406. #else
  407.     rm -f ${etcdir}DOC
  408.     ${etcdir}make-docfile ${obj} ${lisp} ${lispdir}version.el > ${etcdir}DOC
  409. #endif
  410.  
  411. #ifdef AMIGA
  412. ${etcdir}make-docfile: ${etcdir}make-docfile.c
  413.     sc link /etc/make-docfile
  414. #else
  415. ${etcdir}make-docfile:
  416.     cd ${etcdir}; ${MAKE} ${MFLAGS} make-docfile
  417. #endif
  418.  
  419. /* Some systems define this to cause parallel Make-ing.  */
  420. #ifndef MAKE_PARALLEL
  421. #define MAKE_PARALLEL
  422. #endif
  423.  
  424. temacs: MAKE_PARALLEL $(LOCALCPP) $(SHORT) $(STARTFILES) $(OLDXMENU) ${obj} ${otherobj} OBJECTS_SYSTEM OBJECTS_MACHINE
  425. #ifdef AMIGA
  426.     slink <with <
  427. from ${STARTFILES} $(obj) OBJECTS_SYSTEM OBJECTS_MACHINE $(otherobj)
  428. to temacs
  429. lib LIB_STANDARD
  430. nodebug
  431. batch
  432. <
  433. #endif
  434.  
  435. demacs: MAKE_PARALLEL $(LOCALCPP) $(SHORT) $(STARTFILES) $(OLDXMENU) ${obj} ${otherobj} OBJECTS_SYSTEM OBJECTS_MACHINE
  436. #ifdef AMIGA
  437.     slink <with <
  438. from ${STARTFILES} $(obj) OBJECTS_SYSTEM OBJECTS_MACHINE $(otherobj)
  439. to demacs
  440. lib LIB_STANDARD
  441. map ram:emacs.map,h,x
  442. addsym
  443. swidth 16
  444. batch
  445. <
  446. #else
  447.     $(LD) ${STARTFLAGS} ${LDFLAGS} -o temacs ${STARTFILES} ${obj} ${otherobj} OBJECTS_SYSTEM OBJECTS_MACHINE ${LIBES}
  448. #endif
  449.  
  450. /* These are needed for C compilation, on the systems that need them */
  451. #ifdef NEED_CPP
  452. CPP = ./localcpp
  453. localcpp:
  454.     cd ${cppdir}; ${MAKE} ${MFLAGS} EMACS=-DEMACS
  455.     ln ${cppdir}cpp localcpp  /* Name where CFLAGS will refer to it */
  456. /* cc appears to be cretinous and require all of these to exist
  457.    if -B is specified -- we can't use one local pass and let the
  458.    others be the standard ones.  What a loser.
  459.    We can't even use ln, since they are probably
  460.    on different disks.  */
  461.     cp /lib/ccom localccom
  462.     -cp /lib/optim localoptim
  463.     -cp /lib/c2 localc2
  464.     cp /bin/as localas
  465. #else /* not NEED_CPP */
  466. CPP = $(CC) -E
  467. #endif /* need NEED_CPP */
  468.  
  469. #ifdef SHORTNAMES
  470. shortnames:
  471.     cd ${shortnamesdir}; ${MAKE} ${MFLAGS}
  472. #endif /* SHORTNAMES */
  473.  
  474. /* Don't lose if this was not defined.  */
  475. #ifndef OLDXMENU_OPTIONS
  476. #define OLDXMENU_OPTIONS
  477. #endif
  478.  
  479. #ifdef HAVE_X_WINDOWS
  480. #ifdef HAVE_X_MENU
  481. #ifdef HAVE_X11
  482. $(OLDXMENU):
  483.     cd ${oldXMenudir}; ${MAKE} ${MFLAGS} OLDXMENU_OPTIONS
  484.     ln ${oldXMenudir}libXMenu11.a $(OLDXMENU) || cp ${oldXMenudir}libXMenu11.a $(OLDXMENU)
  485. #endif /* HAVE_X11 */
  486. #endif /* HAVE_X_MENU */
  487. #endif /* HAVE_X_WINDOWS */
  488.  
  489. paths.h: paths.h-dist
  490.     echo paths.h needs to be set up from paths.h-dist
  491.     exit 1
  492.  
  493. config.h: config.h-dist
  494.     echo config.h needs to be set up from config.h-dist
  495.     exit 1
  496.  
  497. /* Some machines have alloca built-in.
  498.    They should define HAVE_ALLOCA, or may just let alloca.s
  499.    be used but generate no code.
  500.    Some have it written in assembler in alloca.s.
  501.    Some use the C version in alloca.c (these define C_ALLOCA in config.h).
  502.    */
  503.  
  504. #ifdef C_ALLOCA
  505. alloca.o : alloca.c
  506. #else
  507. #ifndef HAVE_ALLOCA
  508. alloca.o : alloca.s config.h
  509. /* $(CPP) is cc -E, which may get confused by filenames
  510.    that do not end in .c.  So copy file to a safe name.  */
  511.     cp alloca.s allocatem.c
  512. /* remove any ^L, blank lines, and preprocessor comments,
  513.    since some assemblers barf on them */
  514.     $(CPP) allocatem.c | \
  515.     sed -e 's/ //' -e 's/^#.*//' | \
  516.     sed -n -e '/^..*$$/p' > allocatem.s
  517.     -rm -f alloca.o
  518. /* Xenix, in particular, needs to run assembler via cc.  */
  519.     cc -c allocatem.s
  520.     mv allocatem.o alloca.o
  521.     rm allocatem.s allocatem.c
  522. #endif /* HAVE_ALLOCA */
  523. #endif /* not C_ALLOCA */
  524.  
  525. /* Nearly all the following files depend on lisp.h,
  526.    but it is not included as a dependency because
  527.    it is so often changed in ways that do not require any recompilation
  528.    and so rarely changed in ways that do require any.  */
  529.  
  530. abbrev.o : abbrev.c buffer.h commands.h config.h
  531. buffer.o : buffer.c syntax.h buffer.h commands.h window.h config.h
  532. callint.o : callint.c window.h commands.h buffer.h config.h
  533. callproc.o : callproc.c paths.h buffer.h commands.h config.h
  534. casefiddle.o : casefiddle.c syntax.h commands.h buffer.h config.h
  535. cm.o : cm.c cm.h termhooks.h config.h
  536. cmds.o : cmds.c syntax.h buffer.h commands.h config.h
  537. crt0.o : crt0.c config.h
  538.     $(CC) -c $(CFLAGS) C_SWITCH_ASM crt0.c
  539. dired.o : dired.c commands.h buffer.h config.h regex.h
  540. dispnew.o : dispnew.c commands.h window.h buffer.h dispextern.h termchar.h termopts.h cm.h config.h lisp.h
  541. doc.o : doc.c buffer.h config.h paths.h
  542. doprnt.o : doprnt.c
  543. editfns.o : editfns.c window.h buffer.h config.h
  544. emacs.o : emacs.c commands.h config.h
  545. #ifdef MAINTAIN_ENVIRONMENT
  546. environ.o : environ.c buffer.h commands.h config.h
  547. #endif /* MAINTAIN_ENVIRONMENT */
  548. fileio.o : fileio.c window.h buffer.h config.h
  549. filelock.o : filelock.c buffer.h paths.h config.h
  550. filemode.o : filemode.c
  551. indent.o : indent.c window.h indent.h buffer.h config.h termchar.h termopts.h
  552. insdel.o : insdel.c window.h buffer.h config.h
  553. keyboard.o : keyboard.c termchar.h termhooks.h termopts.h buffer.h commands.h window.h macros.h config.h
  554. keymap.o : keymap.c buffer.h commands.h config.h
  555. lastfile.o : lastfile.c
  556. macros.o : macros.c window.h buffer.h commands.h macros.h config.h
  557. malloc.o : malloc.c config.h
  558. marker.o : marker.c buffer.h config.h
  559. minibuf.o : minibuf.c syntax.h window.h buffer.h commands.h config.h
  560. mocklisp.o : mocklisp.c buffer.h config.h
  561. process.o : process.c process.h buffer.h window.h termhooks.h termopts.h commands.h dispextern.h config.h
  562. regex.o : regex.c syntax.h buffer.h config.h regex.h
  563. scroll.o : scroll.c termchar.h config.h dispextern.h termhooks.h
  564. search.o : search.c regex.h commands.h buffer.h syntax.h config.h
  565. syntax.o : syntax.c syntax.h buffer.h commands.h config.h
  566. sysdep.o : sysdep.c config.h dispextern.h termhooks.h termchar.h termopts.h window.h
  567. term.o : term.c termchar.h termhooks.h termopts.h config.h cm.h
  568. termcap.o : termcap.c config.h
  569. terminfo.o : terminfo.c config.h
  570. tparam.o : tparam.c config.h
  571. undo.o : undo.c buffer.h commands.h config.h
  572. UNEXEC : config.h getpagesize.h
  573. window.o : window.c indent.h commands.h window.h buffer.h config.h termchar.h
  574. xdisp.o : xdisp.c macros.h commands.h indent.h buffer.h dispextern.h termchar.h window.h config.h
  575. xfns.o : xfns.c xterm.h window.h config.h
  576. xmenu.o : xmenu.c xterm.h window.h config.h
  577. xterm.o : xterm.c xterm.h termhooks.h termopts.h termchar.h \
  578.  dispextern.h config.h sink.h sinkmask.h
  579.  
  580. x11fns.o : x11fns.c window.h x11term.h dispextern.h termchar.h config.h
  581. x11term.o : x11term.c x11term.h termhooks.h termopts.h termchar.h \
  582.  dispextern.h config.h sink11.h sink11mask.h lisp.h gettime.h emacssignal.h \
  583.  xkeys-aix.h
  584.  
  585. /* The files of Lisp proper */
  586.  
  587. alloc.o : alloc.c window.h buffer.h config.h
  588. bytecode.o : bytecode.c buffer.h config.h
  589. data.o : data.c buffer.h config.h
  590. eval.o : eval.c commands.h config.h
  591. fns.o : fns.c buffer.h commands.h config.h
  592. print.o : print.c process.h window.h buffer.h dispextern.h termchar.h config.h
  593. lread.o : lread.c buffer.h paths.h config.h
  594.  
  595. /* System-specific programs to be made.
  596.    OTHER_FILES, OBJECTS_SYSTEM and OBJECTS_MACHINE
  597.    select which of these should be compiled.  */
  598.  
  599. sunfns.o  : sunfns.c buffer.h config.h
  600.  
  601. ${etcdir}emacstool: ${etcdir}emacstool.c
  602.     cd ${etcdir}; ${MAKE} ${MFLAGS} emacstool
  603.  
  604. SimpleRexx.o: SimpleRexx.c SimpleRexx.h
  605. amiga_clipboard.o: amiga_clipboard.c termchar.h amiga.h config.h
  606. amiga_dump.o: amiga_dump.c termchar.h buffer.h dispextern.h regex.h amiga.h config.h
  607. amiga_menu.o: amiga_menu.c amiga.h config.h
  608. amiga_processes.o: amiga_processes.c amiga.h config.h
  609. amiga_rexx.o: amiga_rexx.c SimpleRexx.h amiga.h config.h
  610. amiga_screen.o: amiga_screen.c termchar.h dispextern.h amiga.h config.h
  611. amiga_serial.o: amiga_serial.c amiga.h config.h
  612. amiga_sysdep.o: amiga_sysdep.c termopts.h termhooks.h termchar.h dispextern.h \
  613.         amiga.h config.h
  614. amiga_term.o: amiga_term.c termopts.h termhooks.h  termchar.h config.h
  615. amiga_tty.o: amiga_tty.c termhooks.h termchar.h amiga.h config.h
  616. amiga_malloc.o: amiga_malloc.c amiga.h config.h
  617.     $(CC) $(CFLAGS) parms=both amiga_malloc.c
  618.